import React,{useEffect,useRef} from 'react'

export default function Map() {
  let container=useRef()
  useEffect(()=>{
    let AMap=window.AMap
    var map = new AMap.Map(container.current);
  })
  return (
    <div style={{height:"300px"}} ref={container}>
      
    </div>
  )
}
